adding new for loop for basic layout of madly