call correct function