repaired filling script