wrapped into an easy to use function