callback returns first argument as null if no error