add new function to check new message