add migration function
add migration function