added parameters to mass save