updating some deprecated functions