the concept was simple but I had to get the format right