just need main algorithm now