remove isRight and isLeft