spelling correction and remove unnecessary line