map f5 to h cpp