removed i_ref references in main