Updated to_hash method in item lookup

Signed-off-by: Evan Tedesco <evantedesco@gmail.com>