collapse function

Elementary collapse