algorithm should run before snapshot create