stub a function for emptying elements