adding solution cache writing
adding solution cache writing