added two new functions