defining function set