init in the function use getTime() instead of now()