fixed phi issue