use system.currenttimemillis() instead of new Date()