added two additional functions