fixed return types
fixed eaten raw parts
fixed tests