path length simulator