made the comma separated function to not print the zero values