correctly pass prev object