implementation and test to helpers #xif