add collect function.