move data operation to modesl module