added if statements for author