changed function parameter order to make item optional
visualize by search first working version