fix funct