making resize function smaller
grunting before adding to the pull request