4-connect-generator-with-trap