updated refs to fix problems with offset