change before-save-hook to after-save-hook