rework of script to contain required criteria