refine the script
refine the script