how to remove element from dictionary