cannot initialize time to null, set to 0