instantiate class instead of getting the instance directly