changed the remove_from_Q. Please update in code.