check if done or not