Tried to fix bubbleUp for readability but caused an error