added focus checker