how to use the gather function - Modular