minimized version

minimized version of my first pull request