changed to fix 32bit compilation