message struct now works