squash $neww and $newh undefined bug?