added logging of obj