updated sol for mod9 and 10