need arbitrary number of items instead of only for three items