script now working