loop and setup removed from index.js