modified for ref material