working on remove function to replace reset function