added key_name function