testing setup and removed delays from functions