indexed the isRight correctly so it works hopefully