added some gridding