variable rows are set in mean fuction