updated appendGrid