users now see their history
using other way of joining query