more work on the gym, and almost gave up... no clean way to get value of keys