added option to offset data