haha.. that's what i get for copying code from stack overflow!