removing duplications in dashboard helper