error handling styles added