fixing strict function declaration