almost logic is ended