re-ordering variable declarations