removed query for homepage functions