term encoding convenience functions