tak function corrected during export to INSTEAD: not only taking object to the inventory, but also executing code from act handler