double is not supported, use float instead