declare callback for curd etc