added ability to print multiple names