removed the echo statements in logic.php