fixed no of solutions bug