updates grid