added a function to raise an error at a specific position
some linting