add globals for the sake of simplifying code