add copyright
solve a minor problem