handle declare in another clause