refactor Logic simple operation