fucking off by one errors. fixed now.