added pfr functionality