better method using left and right