wrote delete() function, but didnt test it !!