correct function declaration