comment out sleep on redirect
created customized function