master add function file