added logic handler