refactored separator number step method