In reply to Raj2004:
Are you aware in which conditions pre/post_body are called or not called? We generally do not recommend using them because are not aware of the different situations.
Do you have a typo in your source code, or is it just in your post - bosy() should be body().