minor fixes in deprecated functions