modified option begin and end