turned off debug. fixed vars. added console.logs