fix bounce
mask and redraw edges