added titles. EOF datat/datag not working - fix