second method added