changed data format for mongoose