replaced keys() for Object.keys()