added convenience functions.