forloop offset & limit; clean up warnings