changed to process_keys