made author element an object and corrected index