replaced hardcoded timestamp by time()