filter a list to get accounts only