few more edits to path optimization