fix functions aritty