working on builing approval function.