reduce duplicate checks