moving the position for items and types - also removing whitespaces.