fixed typo for sin and cos functions