Just another note to try to avoid one-letter variables, even for quick things like this. It makes it tough for me to see what's going on.