functions to work with keymaps + removed redundant functions