modification to 221 logic