fix jellybean function