revise scripts that gen equi.frame in the end