set better interval function for progress