removed unneeded #endif