use correct function def