minor modification in break wave demo