generate int context