remove uneccessary call to keys()