updating angle value