remove console.log
remove extra console.logs and do proper comparison