refactored draw lines