made utils. handle deep changing of objects