designing an AF-Raf program