dealing with buggy indentation for keylist loop
changing the get method