remove duplicated code with an alias
Add more usage examples