modify data structure - function library now specified