new API for Grid