edge bouncing added