add None if no needles in pattern