correct placement of #endif