changed the boundary for ticks and grid