getName from class log properly