common function examples