remove callback and made it an anonymous function