fixed phi assignment