updated loop to show only books written after 1950