- avoid deprecated functions