rewrite to make each line independent