moving bar experiment optimized (not tested)