changed tmp to final to avoid conflict.
output of the script