added if statement to catch if ci<gamma_star