method expansion working