transformation mistake maybe found in firstAssig->sin/cos