added some line tracking