fixed the shift-out operation