add condition parameter to track.rb