add ret value to callback