added two offsets