temporarily building whil e writing encoder