added rec
minimal fixing