adding vic function.