add group into metadata