arrow function to normal function