endings problem