don't send code if undefined