replace x_in variable to 'in' variable