adding funct