added method for getting a single attribute value in a collection