added rec method