init with data