move ran = true after method call