updated script code style