changed name to names since its an array