remove global vars, use example data