move angle calculation to mutil