complete instructions for encoding messages