removed the unnecessary done boolean