change before_scritp