add max length to line