build refac