removed hardcoded gridsize
fixed flexible grid size