remove unused ffifunctions