fix fecs warn: script was used before it was defined
fix fecs warn
remove unuseful variable