simplify script