add global strings & clean up codes