Some arrow functions and using setimmediata