using a lamda function to start the looper thread