added checkListener method