change myPrint to console.error