rename Function entity to MinFunction for distinction