updated accordingly to updated script file