remove console log
fix col index for horizontal path calculation