refactored to use  instead of  due to angular quirk with string arrays