seems like this needs to be updated before passing it above, or it will always stay 0....?