collapse code to same lines