variant key generatng code commented out