add left and right handling