cleaner code for converting missing 8