removed duplicated expect