added public method to get the plain data array