implementation of record storage