fix get solution method bug, change strings to int