update to codelines based on Joe's feedback.