class check order was all wrong