remove angle calculation from loop