added class constraint