don't pass globals as parameters