fixed getright and getleft to void