reverted untested retardation
added semicolon and #endif in correct places