adds following function