modified script a tad