refactored drawLines for IND