added trace left and right for distance calc; committing so as not to forget