adding doctest to sigloss