Corrected a function declaration