Fixing function declaration