delete and create are working properly