a few improvements based on PR feedback
fixed spelling error