wrote a loop using approximate variable and future function