add migrate method