added unilevel computation