to add function of load