postmethod function added