simplified the first migration script (verified)