added progress bar and more options for grid patter