added marc record function