added several convenience functions