Removed duplicated code
typos