unfinished legality check