added getleft and getright