attempted to implement waitTime() properly - not really sure