cleaned up spacing and console.log statements