solution for fx problems