added echo statements