added copy offset