delete function
update function
fix read and update function