cleaned up code for selecting GRUB_PC class