allowing instantiated objects to be passed instead of only the name