how to switch between set of objects