added message algo