add xlimits and ylimits, fix a problem with multiple iterators