changed error to static