make data and ids fields public