added appropriate pointer for 64 bit compilation