slightly different version of script