rm deprecated function