got everything but next step is to work on converting objects in mongoose to array****