more complex 'declare' statements handling