removing config as parameter against using properties