move index declaragtion into pragma