added polar angle calculation