fixed linker and main