fitting routine functional again