janky left right boundary controlled implemented