reorganized panel model.. still need more comments