begin grid directive