updated problem with x_pos