updated deprecated functions