removed unused lines in getPhi