edits to script4, need testing for 1,2,3,4