function declaration fix