changed the swab instruction position and added pop instruction