Deformation of canonical metrics I