fixed nameFunc