moved save function to lf_collection