link bug fixes in header file updated pt 2