change return type from object to string