added wrapper for clearing interval