added recommendations and output function