display function prints dimensions of vals