temporary solution class constraint