adding head option for MongoDB