updated offset, so now the ndarray iterator can use it. needs testing