added helper methods for creating line