corrected normal functions