check type and more console.log