bool ending code