if theres no callback function, dont define a function