ending problem