finish a problem