fixed return value if one is not found