typo fixed
refactoring for responsiveness