done for user wise data