changes to mongoose