setup working loop
added function signatures