working on write and delete method