changing Time.now to Time.current