change left_pos dynamically