replaced unnecessary type parameters with diamond operator