add settime to prevent stack overflow