fixed linker bug