using war pattern