added method for returning raw data