fixed incorrect return type.