fix the nest phi