added first story line logic