update generator to 3