remove call to gather function