make sure to return an error