cos should have been sin