added hasVal for list