chnages in cloneObj
bug fixes