needed to instantiate class before calling method