updated the script a touch, although the h it gives is a litttle wrong