handle null callback