deleting element works