added reference stuff