now() function to eliminate warnings, style fixes