some error handling is been added for dealing with empty records...