We propose a new nonrigid registration algorithm which is based on the optimal control approach. In our previously proposed methods, the Jacobian determinant and the curl vector were used as control functions. In this algorithm, we use a new set of control functions. A main advantage of using the new controls is that the positivity and normalization of the Jacobian determinant are satisfied automatically. Numerical results on large deformation brain images are provided to show the accuracy and efficiency of the algorithm.