confused as to what this function does...