add the remaineder to the setLineMode call