added three stages of bubble