added sleep time as const