converted some mongoose Schemas to normal objects because mongoose does not support nested schemas in some cases