stop param is inclusive and do same with less code (thanks @justinvdm, @hodgestar)