fixing the linkage