cleaned up chi_angle fn
refactors