You'll have to show me how you are calling this routine.
what is data?

What input are you using and what output do you get that you don't like?