smart line clipping added