working with mongoid4