updated to newer cgmath