had to make change to support 64 bit architecture