move ids to member variable