drawing line with more limits