added algorithm to fetch psalm text