fized spacing issue and aded for loops to contruct items object