refactoring code and add reported_object