fixed max line computation