fixed linkage problem