added function which permutes existing solution