added TJ's script that I deleted by mistake