add the functionalities for record handling