repositioning declare of the variabiles