forgot to make <= instead of <, doesn't really affect results