added cos function