removed call to global var (doubled)