replaced my.df with d