deprecated functions