added SetOffset method