correcting callback type returned