handling corpus