new_ENCODE updated

updated new_ENCODE to use keys variable