not working for latest trinity its giving error on compilation