added functionality for gaussian injections