added two more functions