added option to clear the slot or not clear slot