reformatting communication code for moment comm