fix for an error with assigning items to characters -- we need to declare the function BEFORE we module.export it