added left or right side calculations. tested