modified method names
added state properties in order to handle timing overload
fixed syntax error