added in array eddited

 changed the code for all placement of initial variables