change dynamic grade code