fixing rotate() which was only working with degrees
rebuilt dist