got rid of scary trigonometry