fix duplicate code
fix spelling