working on offset, using size