improve a line that was repetitive