fixed CW/CCW issue.