take that and end condition