isLegal seems to work