generic Function of callback set