removed broken code, got while loop working, but cant append onto hash?