improve the script
MERGE