- changed the way values are passed as arguments to calls to address referencing issues