removes deprecated function