paintLine to paintLines