generating dot output