change to mongoose schema