fix delete and create