make it work on 10gen codereview