set treatment based on evalcode