woooo off by one error