added logic-1