ahh.. my mistake. i declare var n instead of int n grin

thanks DJBMASTER