When posting code, make sure you use the code or highlight tags to preserve formatting. Also, make sure it's in the form of an SSCCE (that's a link).

But have you tried putting in some print...