bug fixing, example added