added separator logic