added data function, fixed conf function