yeah some typecasting would be neat, not only in my proc but also everywhere else in the file, totally agree, sadly i don't have the time to rewrite the file atm.