added is done logic