improved show function for distributions