removing generating function