implements retrieving object and save bug fix