Rename preg to df since preg variable not yet initialized