bug in IF loop for adding extra stories