difference between arrow function and normal function stack overflow