converted INT to LONG to support >2GB file size