track logic(part)

part of track logic