added input shift operator for lines