add class info for left/right