a simple shell function