update left and right