deprecated function declare