working version with stupid messages