caching solve with comments