delete unnecssary file and code refactor