update  for moodle 2.7