this state array map is not a function