added missing code

error class and error placement missing