removed some useless code, added some blank line to make code prettier.