using data from mongo