missing $timenow issue fixed