removed unused variable, renamed error data.