fixed CIAdata function