using null instead of undefined for callback error