added callback to fitting, still to test with app