removing console.log statements
removed nested ULs since and simplified the solution