commited erase which is not working right now.. to be refactored later