add missing argument to the signature of generateId()