update number function signature
fix clearing from undobuffer
rebuild