using professor's reshape script