formatting, lots of console.logs() and debugging in code