some changes for method reference