adding depreacted warnings