Why "left=True" and "right=True", in this function?