added check callback function to util lib