SPARK-2277: rename the method