added logic.php