added getRows Improvement