The 3in one you bought, just swap the 4in pipe for a 3in with the same exact end.

See how it fits together with the smaller end of the pvc going into the 3in coupler and big end of pcv fitting perfect for the filter.