use an intermediate variable for clarity. set top to obj.