remove delay func