base code for data