cleaned up the bottom of the script