committing message function