added the "buildMessage" function