converted from method to es5 getter