updated globals to express objects and optimized item sorting (to be more difficult)