added migrate method