fixed trig's cosine error
moar help