modify md & pg