switched solve from unsigned char to int... matching the library