some linting
added missing err check after seek