changing add function declaration