change function to satisfy Gaea library