added message logic