added reference alias check