error fixes and started to delete operation