break up long code block