change distance calculating
update .gitignore