fixed a bug
implemented solution lookup