updated collapser to have default parameters so functions calls are easier to write