make the size() call resolve correctly, already implemented on master branch