utility to manipulate raw data