added two additional delegate methods