check how delete works