make offset optional; bug fix