improve bubble ups and down