setTimeout mycall has been moved below the code