add feature of add and remove instances