isLegal done