added .delay() and formatted indentations