remove typo and unneeded code