fixing the length of lines