syntax correction in main script