added use of keys method to get column headers