change const
fix bug contains with wrong offset counting; adds debuge print