updated script to move declaration
updated script to move declaration
updated script