add offset sampling