method function added