corrected the linking bug