change dataAgent from static to non static