better cosines phase