fixed and added an example