adding some error reports in for .put method