replaced string with enum