fixing failing async undelayed promise issue
removing unused variable