added Dr. T's code for reference