added begin and end comments