prints the record
printrecord(recordpointer);