simplify the script