added convenience function