console.log debugging
fixeded the codes