On the Hamilton-Jacobi-Bellman equations