preparation for datahandling