getting the remove function to work