UTILs

change logic of recg