added some echo statements