make sure elemfunc always returns floats