remove unused clear_phi()