added a focus method