implement magical record