works but does not solve the problem with orientdb