added parameter for num of cat display