changed the -sin to sin