add a convenience method i should have added a long time ago