never compute the length of the trail, but keep a int ref