adding error properites