changed so that it only prints names beginning with a