fit from script working