add offset for sequence