finish the collecting of data