modify the bak script