added variables for grid system