running implementation for visualization