final proper script.
remove extra code