make sure that rows is initialized