adding move func