change file directory
implementation of grid