you can also use sin() to make the code more elegant...