added Slot functionality