setting interval to 50ms