rewrite collecting-data