get ready for obstacle algorithm