added new function for mod gomp only