make simple fitting works (still lot to do to work efficiently)