added gcd and lambda block mehtod'