add move func for rs